package com.jacobson.huobi.api

import com.alibaba.fastjson.JSONObject
import com.jacobson.huobi.common.HttpAuthentication
import com.jacobson.huobi.entities.UpdateInfo
import com.jacobson.huobi.entities.evt.UpdPwdEvt
import com.jacobson.huobi.entities.response.AlarmRecordPageResponse
import com.jacobson.huobi.entities.response.CommonResponse
import io.reactivex.Observable
import retrofit2.http.*


interface MeInfoApi {


    @GET("notice/latest?size=1")
    @Headers(HttpAuthentication.HEADER)
    fun loadNoticeLatest(
    ): Observable<CommonResponse<List<JSONObject>>>

    @POST("user/update_pwd")
    @Headers(HttpAuthentication.HEADER)
    fun updatePwd(
        @Body pwdEvt: UpdPwdEvt
    ): Observable<CommonResponse<JSONObject>>


    @POST("app_upgrade/newest")
    fun loadUpdateInfo(
    ): Observable<CommonResponse<UpdateInfo>>


}